home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1200 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  686 b 

  1. Path: news.ran.es!usenet
  2. From: mper@ran.es
  3. Newsgroups: comp.lang.c++
  4. Subject: Random numbers
  5. Date: 9 Jan 1996 21:01:01 GMT
  6. Organization: RAN INTERNET
  7. Message-ID: <4cul2d$gi@news.ran.es>
  8. NNTP-Posting-Host: ppp008.ran.es
  9. X-Newsreader: News for Windows NT X1.0-74
  10.  
  11. How many "random" numbers can be created using the rand() function without repitition. 
  12. I am using this routine for a physics projects which simulates alpha scattering (Rutherford
  13. Scattering), and I do about 1 million iterations through the main loop, creating 1 million random numbers.
  14. Obviously, if its just repeating the numbers, the whole point of the simulation is gone.
  15.  
  16. Anyone who knows, please answer,
  17.  
  18. TIA
  19. Martin.
  20.  
  21.